import 'package:flutter/foundation.dart';// import 'package:jfzh_product/model/web_model.dart';import '../../routes/routes.dart';import 'save/sp_util.dart';import 'package:get/get.dart';class WebUtil {//   ///普通页面进入Web页面1  static toWebPage(      {required String title,      required String link,      required int id,      Function(bool)? onResult}) {    if (kDebugMode) {      print("webViewTitle====>$title");      print("webViewUrl====>$link");    }    // Get.toNamed(Routes.webViewPage,    //     arguments: WebEntity(    //       title: title,    //       link: link,    //       id: id,    //       isCollect: false,    //     ))?.then((value) async {    //   if (value is bool && onResult != null) {    //     onResult(value);    //   }    // });  }}